package com.chinaunicom.mybatis;

import lombok.Data;

import java.util.Date;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/1/14 9:18
 * Description:
 */

@Data
public class Order {

    private String id;

    private String name;

    private int count;

    private Date createTime;


    public Order() {}

    public Order(String id, String name, int count) {
        this.id = id;
        this.name = name;
        this.count = count;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", createTime=" + createTime +
                '}';
    }

    public Order(String id, String name, int count, Date createTime) {
        this.id = id;
        this.name = name;
        this.count = count;
        this.createTime = createTime;
    }
}
